import request from '@/utils/request'

// 查询题簇审核列表
export function listClusteAudit(query) {
  return request({
    url: '/receipt/subjectClusteAudit/list',
    method: 'get',
    params: query
  })
}

// 查询题簇审核详细
export function getClusteAudit(id) {
  return request({
    url: '/receipt/subjectClusteAudit/' + id,
    method: 'get'
  })
}

// 新增题簇审核
export function addClusteAudit(data) {
  return request({
    url: '/receipt/subjectClusteAudit',
    method: 'post',
    data: data
  })
}

// 修改题簇审核
export function updateClusteAudit(data) {
  return request({
    url: '/receipt/subjectClusteAudit',
    method: 'put',
    data: data
  })
}

// 删除题簇审核
export function delClusteAudit(id) {
  return request({
    url: '/receipt/subjectClusteAudit/' + id,
    method: 'delete'
  })
}

// 导出题簇审核
export function exportClusteAudit(query) {
  return request({
    url: '/receipt/subjectClusteAudit/export',
    method: 'get',
    params: query
  })
}
//审核成功
export function ClusteAuditConsent(data) {
  return request({
    url: '/receipt/subjectClusteAudit/ClusteauditConsent/',
    method: 'put',
data: data
  })
}

//审核驳回
export function ClusteAuditReject(data) {
  return request({
    url: '/receipt/subjectClusteAudit/ClusteauditReject/',
    method: 'put',
    data: data
  })
}
